package com.wtc.homework2;

public class Scientist extends Employee {
    private double bonus;

    @Override
    public String say() {
        return super.say() + "，年终奖：" + bonus;
    }

    public Scientist(String name, double sal, double bonus) {
        super(name, sal);
        this.bonus = bonus;
    }

    public double getBonus() {
        return bonus;
    }

    public void setBonus(double bonus) {
        this.bonus = bonus;
    }
}
